import { createApp } from "vue";

// 全局样式
import "@/assets/css/global.scss";
// ElementPlus UI组件
import ElementPlus from "element-plus";
// App
import App from "@/App.vue";

import Directives from "@/directives";
// vue router
import router from "@/config/router";
// pinia store
import store from "@/config/store";
// Register icon sprite
import "virtual:svg-icons-register";
import { initAMapApiLoader } from "@vuemap/vue-amap";
import "@vuemap/vue-amap/dist/style.css";

initAMapApiLoader({
	key: "b43fb513e5ae30dff547cd93b3ff0935",
	securityJsCode: "668c4af9ff47ac7b6cbe93b5e378df4d",
	plugins: ["AMap.Geocoder"],
	//Loca:{
	//  version: '2.0.0'
	//} // 如果需要使用loca组件库，需要加载Loca
});

const app = createApp(App);
app.use(router);
app.use(store);
app.use(Directives);
app.use(ElementPlus);
app.mount("#app");
